-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to delete none whitelisted domains in certificate update #112
Conversation
lib/resty/acme/autossl.lua
Outdated
@@ -332,10 +333,23 @@ function AUTOSSL.check_renew(premature) | |||
goto continue | |||
end | |||
|
|||
local domain = deserialized.domain | |||
if not AUTOSSL.is_domain_whitelisted(domain, true) then | |||
log(ngx_INFO, "domain ", domain, " not in whitelist, skipping") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log(ngx_INFO, "domain ", domain, " not in whitelist, skipping") | |
log(ngx_INFO, "domain ", domain, " not in whitelist but exists in storage, skipping renewal") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since you will actually delete the not whitelisted domain afterwards, it's not always "skipping". so this log line will need to move to after Line 345 and don't show if AUTOSSL.config.enabled_delete_not_whitelisted_domain
is true.
Thank you @yuweizzz ! |
### Summary #### [0.13.0] - 2024-03-28 ##### bug fixes - **autossl:** log the errors on the list certificates request ([#110](fffonion/lua-resty-acme#110)) [6c9760f](fffonion/lua-resty-acme@6c9760f) #### features - **autossl:** add option to delete none whitelisted domains in certificate renewal ([#112](fffonion/lua-resty-acme#112)) [1bbf39c](fffonion/lua-resty-acme@1bbf39c) Signed-off-by: Aapo Talvensaari <aapo.talvensaari@gmail.com>
### Summary #### [0.13.0] - 2024-03-28 ##### bug fixes - **autossl:** log the errors on the list certificates request ([#110](fffonion/lua-resty-acme#110)) [6c9760f](fffonion/lua-resty-acme@6c9760f) #### features - **autossl:** add option to delete none whitelisted domains in certificate renewal ([#112](fffonion/lua-resty-acme#112)) [1bbf39c](fffonion/lua-resty-acme@1bbf39c) Signed-off-by: Aapo Talvensaari <aapo.talvensaari@gmail.com>
fix: #85